.home {
  $f: 19.2;

  .banner {
    position: relative;
    &::before{
      content:'';
      display: block;
      position: absolute;
      left: 0;
      top:0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .2);
    }
    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 33vh;
    }
    .text{
      position: absolute;
      left: 0;
      width: 100%;
      bottom:30/$f+vw;
      color:white;
      padding: 0 200/$f+vw;
      .p1{
        font-size: 30/$f+vw;
        font-weight: 600;
        line-height: 1;
      }
      .des{
        font-size: 20/$f+vw;
        margin-top: 20/$f+vw;
        line-height: 1.3;
        font-weight: 200;
      }
    }
  }


  .section{
    margin: 80/$f+vw 200/$f+vw;
    display: flex;
    justify-content:space-between;
    gap: 40/$f+vw;
    .l{
      width: 280/$f+vw;
      .types{
        width: 100%;
        .p1{
          color: #FB0000;
          font-size: 0.9vw;
          font-weight: bold;
          border-bottom: 3px solid #FB0000;
          padding: 10/$f+vw 0;
        }
        .list{
          .item{
            margin-top: 16/$f+vw;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #D9D9D9;
            padding: 16/$f+vw 0;
            cursor: pointer;
            transition: all 600ms;
            p{
              color: #666;
              font-size: 0.9vw;
              transition: all 600ms;
            }
            svg{
              path{
                fill: rgba(102, 102, 102, 1);
                transition: all 600ms;
              }
            }
            &:hover{
              border-color: rgba(251, 0, 0, 1);
              p{
                color:rgba(251, 0, 0, 1);
              }
              svg{
                path{
                  fill: rgba(251, 0, 0, 1);
                }
              }
            }
          }
          .on{
            border-color: rgba(251, 0, 0, 1);
            p{
              color:rgba(251, 0, 0, 1);
            }
            svg{
              path{
                fill: rgba(251, 0, 0, 1);
              }
            }
          }
        }
      }
    }
    .r{
      width: calc(100% - 14.58vw);
      .s_top{
        display: flex;
        justify-content: flex-end;
        .s_search{
          border-bottom: 3px solid #333;
          display: flex;
          padding: 15/$f+vw;
          align-items: center;
          width: fit-content;
          p{
            color:rgba(51, 51, 51, 1);
            font-size: 15/$f+vw;
            margin: 0 50/$f+vw 0 30/$f+vw ;
          }
          input{
            color:rgba(51, 51, 51, 1);
            font-size: 15/$f+vw;
            width: 220/$f+vw;
            outline: none;
            border: none;
          }
          .btn{
            cursor: pointer;
            svg{
              display: block;
              width: 20/$f+vw;
            }
          }
         }
      }
      .wrap{
        .box{
          display: none;
          .list{
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 50/$f+vw  24/$f+vw;
            margin: 60/$f+vw 0;
            a{
              display: block;
              width: 100%;
              .pic{
                position: relative;
                overflow: hidden;
                &::before{
                  content:'';
                  display: block;
                  position: absolute;
                  left: 0;
                  top:0;
                  width: 100%;
                  height: 100%;
                  background: rgba(6, 50, 81, 0.67);
                  z-index: 10;
                }
                img{
                  width: 100%;
                  display: block;
                  object-fit: cover;
                  max-height: 249/$f+vw;
                  transition: all 600ms;
                }
                .icon{
                  position: absolute;
                  right:20/$f+vw;
                  bottom:20/$f+vw;
                  z-index: 10;
                  opacity: 0;
                  transition: all 600ms;
                  svg{
                    width: 24/$f+vw;
                  }
                }
                &:hover{
                  img{
                    transform: scale(1.05);
                  }
                  .icon{
                    opacity: 1;
                  }
                }
              }
              p{
                text-align: center;
                margin: 20/$f+vw 0;
                color: #333;
                font-size: 0.9vw;
              }
            }
          }
          .pager {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 80/$f+vw 0;
      
            .prev,
            .next {
              svg {
                display: block;
                width: 23/$f+vw;
              }
            }
      
            a {
              img {
                margin: 0 0 0 10px;
                display: block;
              }
            }
      
            a:nth-last-child(2) {
              img {
                margin: 0 10px 0 0;
              }
            }
      
            .nums {
              display: flex;
              margin: 0 1vw;
      
              a {
                color: rgba(139, 139, 139, 1);
                font-size: 20/$f+vw;
                padding: 0.1vw 0.5vw;
                margin: 0 0.2vw;
      
              }
      
      
              .active {
                color: #FB0000;
                border-bottom: 2px solid #FB0000;
                font-weight: 600;
              }
            }
            p{
              color:rgba(51, 51, 51, 1);
              font-size: 15/$f+vw;
              margin-left: 40/$f+vw;
            }
          }
        }
        .on{
          display: block;
        }
      }
    }
  }
  @media screen and (max-width: 1024px) {
    .banner {
      img {
        height: 300px;
      }
    }

    .section {
      margin: 30px 5% 60px 5%;
      flex-direction: column;
      .l{
        width: 100%;
        .types{
          .p1{
            padding: 15px 0;
            font-size: 18px;
          }
          .list{
            .item{
              padding: 15px 0;
              p{
                font-size: 18px;
              }
            }
          }
        }
      }
      .r{
        width: 100%;
        margin-top: 30px;
        .s_top {
          flex-direction: column;
  
          .t {
            font-size: 24px;
          }
  
          .s_search {
            padding: 10px;
            width: 100%;
  
            p {
              font-size: 16px;
              margin: 0 20px 0 15px;
            }
  
            input {
              font-size: 16px;
              width: 70%;
            }
  
            .btn {
              svg {
                width: 20px;
              }
            }
          }
        }
        .wrap{
          .box{
            .list {
              grid-template-columns: repeat(1, 1fr);
              // gap: 25px;
              margin: 20px 0;
              a{
                .pic{
                  margin-bottom: 10px;
                  img{
                    max-height: inherit;
                  }
                  .icon{
                    right:10px;
                    bottom:10px;
                    svg{
                      width: 20px;
                    }
                  }
                }
                p{
                  font-size: 18px;
                  margin: 15px 0;
                }
              }
            }
            .pager {
      
              .prev,
              .next {
                svg {
                  width: auto;
                }
              }
      
              .nums {
                margin: 0 10px;
      
                a {
                  font-size: 16px;
                  padding: 3px 5px;
                  margin: 0 5px;
                }
              }
              p{
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }
}